package com.ayf.payment.game.api.service.platform.impl;

import com.ayf.payment.game.api.entity.platform.PaymentChannelRate;
import com.ayf.payment.game.api.mapper.platform.PaymentChannelRateMapper;
import com.ayf.payment.game.api.service.platform.PaymentChannelRateService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PaymentChannelRateServiceImpl implements PaymentChannelRateService {

    @Resource
    private PaymentChannelRateMapper paymentChannelRateMapper;

    @Override
    public List<PaymentChannelRate> getPaymentChannelRateByChannelId(int ChannelId) {
        PaymentChannelRate paymentChannelRate=new PaymentChannelRate();
        paymentChannelRate.setPaymentChannelId(ChannelId);
       List<PaymentChannelRate> list= paymentChannelRateMapper.select(paymentChannelRate);
        return list;
    }

    @Override
    public void updatePaymentChannelRate(PaymentChannelRate paymentChannelRate) {
        paymentChannelRateMapper.updatePaymentChannelRate(paymentChannelRate);
    }

    @Override
    public void insertPaymentChannelRate(PaymentChannelRate paymentChannelRate) {

    }

    @Override
    public void delPaymentChannelRate(int paymentChannelId) {
        paymentChannelRateMapper.delPaymentChannelRate(paymentChannelId);
    }

    @Override
    public void updatePaymentChannelRateStatus(PaymentChannelRate paymentChannelRate) {
        paymentChannelRateMapper.updatePaymentChannelRateStatus(paymentChannelRate);
    }

    @Override
    public PaymentChannelRate getPaymentChannelRate(PaymentChannelRate paymentChannelRate) {
        return paymentChannelRateMapper.getPaymentChannelRate(paymentChannelRate);
    }
}
